import Vue from 'vue'
import Vuex from 'vuex'
import banner from './banner'
import setting from './setting'
import about from './about'
import project from './project'

if (!window.Vuex) {
    Vue.use(Vuex)
}

export default new Vuex.Store({
    strict: true,
    modules: {
        banner,
        setting,
        about,
        project
    }
})

// vuex 优化
// import { Store, install } from 'vuex'
// install(Vue)
// new Store({...})